package com.lin.cloud.disk.entity.request.file;

import com.lin.cloud.disk.common.entity.request.AccountRequestDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @program: cloud-disk
 * @description: 创建文件请求实体类 获取上传地址
 * @author: Lin
 * @create: 2021-03-04 14:18
 **/
@Data
public class GetUploadUrlRequest extends AccountRequestDTO {

    @ApiModelProperty(value = "目录ID", name = "directoryId")
    private Long directoryId;

    @NotBlank(message = "文件路径不能为空")
    @ApiModelProperty(value = "文件路径", name = "objectName")
    private String objectName;


    @NotBlank(message = "文件MD5值不能为空")
    @ApiModelProperty(value = "文件MD5值", name = "md5")
    private String md5;

    @NotNull(message = "文件大小不能为空")
    @ApiModelProperty(value = "文件大小", name = "fileSize")
    private Long fileSize;

}
